home *** CD-ROM | disk | FTP | other *** search
- ;C
- ┌─────────────────────────────────────────────────────────────────────────────┐
- │ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ EXAMPLE #14 ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ │
- └─────────────────────────────────────────────────────────────────────────────┘
- ┌─────────────────────────────────────────────────────────────────────────────┐
- │ │
- │ THE INPUT FILE: A report of orders and shipments for various customers. │
- │ This is similar to the report used in Example #2. │
- │ │
- │ WHAT WE WANT: We will create a report showing the items each customer │
- │ buys. If the product code (e.g. XYZ-30-ABC) contains │
- │ a "-30-" in it, we will leave it out of the report. │
- │ │
- │ HOW WE DO IT: Because the format of the report is very predictable, we │
- │ can use READNEXT to advance to the next line, since we │
- │ will always know what it is (you can compare this with │
- │ Example #2, which is much more difficult to parse). │
- │ │
- │ We will use SETLEN to create an underline that is the │
- │ same length as the customers name. │
- │ │
- └─────────────────────────────────────────────────────────────────────────────┘
-
- ;P
-